package com.leng.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XiaoGe
 * @since 2022-06-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("transaction_record")
public class TransactionRecord extends Model<TransactionRecord> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("card_no")
    private String cardNo;

    @TableField("transaction_date")
    private Date transactionDate;

    @TableField("amount")
    private String amount;

    @TableField("balance")
    private Integer balance;

    @TableField("transaction_type")
    private String transactionType;

    @TableField("remark")
    private String remark;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
